package com.topdt.jbpm.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.thx.common.orm.HibernateBaseDao;
import com.topdt.jbpm.model.ApplyCar;

@Repository
public class ApplyCarDao extends HibernateBaseDao<ApplyCar>{
	
	public List<ApplyCar> findApplyCarsByWorkId(String workId) {
		String sql = "select * from bus_apply_car where work_id = ?";
		List<ApplyCar> list = 
				createSqlQuery(sql, new Object[]{workId}).addEntity(ApplyCar.class).list();
		return list;
	}

}
